Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / HaveCount Method
In This Topic
    HaveCount Method
    In This Topic
    Asserts that the number of items in the collection matches the supplied expected amount.
    Overload List
    OverloadDescription
    Asserts that the number of items in the collection matches the supplied expected amount.  
    Asserts that the number of items in the collection matches a condition stated by the countPredicate.  
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also